package com.ruoyi.framework.web.page;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 分页参数
 *
 * @author jzy
 * @date 2021/7/12
 */
@Data
public class PageParam implements Serializable {
    private static final long serialVersionUID = 8585760931165626989L;

    @ApiModelProperty(value = "页码", required = true)
    private long page = 1L;
    @ApiModelProperty(value = "每页数据条数")
    private long pageSize = 10L;

    public Page initPage() {
        Page tPage = new Page(page, pageSize);
        return tPage;
    }

}
